"""Implementation of n-cycle graph."""

#_______________________________________________________________________________

import logging
import sys

import networkx as nx

from .._debug import logged

#_______________________________________________________________________________

_logger = logging.getLogger('nxchaos.graph.cycle')

#_______________________________________________________________________________

def build(n):
    """Returns complete graph with n nodes"""
    
    g = nx.complete_graph(n)

    _logger.debug("K_{n} graph constructed.".format(n=n))

    return g
